package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.Pager;
import com.ndp.fb.rdb.model.ga.EcGaCredential;
import com.ndp.fb.rdb.model.ga.EcGaCredentialExt;

/**
 * Created by infi.he on 2016/4/13.
 */
public interface EcGaCredentialRdbService {

    Pager<EcGaCredentialExt> listEcGaCredentialExt(Long orgId,Integer firstResult, Integer sizeNo);

    /**
     * 找到所有成功的
     *
     * @param orgId
     * @param productId
     * @return
     */
    EcGaCredential findByOrgIdAndProductId(Long orgId, Long productId);

    void saveOrUpdate(EcGaCredential gaCredential);

    void unauth(Long orgId, String aLong);
}
